package com.wust.supermarket.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import com.wust.supermarket.domain.Member;;

@Mapper
@Repository
public interface MemberDao {
    //查询所有会员
    List<Member> listAllMembers();

    //通过ID查询会员
    Member getMemberById(int memberId);
    
    //插入会员
    int insertMember(Member member);

    //修改会员
    int updateMember(Member member);
    
    //删除会员
    int deleteMember(int memberId);

    //查询会员总数
    int getMemberNumber();
}
